import instance from "@/axios";

export const getTagPageList = (data) => {
    return instance({
        url: '/admin/tag/list',
        method: 'POST',
        data
    })
}
export const addTag = (data) => {
    return instance({
        url: '/admin/tag/add',
        method: 'POST',
        data
    })
}
export const deleteTag = (id) => {
    return instance({
        url: '/admin/tag/delete',
        method: 'POST',
        data: {id}
    })
}
export const searchTags = (key) => {
    return instance({
        url: '/admin/tag/search',
        method: 'POST',
        data: {key}
    })
}

export const getTagSelectList = () => {
    return instance({
        url: '/admin/tag/select/list',
        method: 'POST',
    })
}